/**
 * 
 */
package com.xbang.attendance.web.action.system.facilitator;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.xbang.attendance.entity.system.FareFacilitator;
import com.xbang.attendance.entity.system.Warehouse;
import com.xbang.attendance.service.SystemService;
import com.demo2do.lighturl.annotation.Action;
import com.xbang.core.struts.support.BaseActionSupport;

/**
 * @author dev.zhang
 * 
 */
public class Index extends BaseActionSupport {

	private static final long serialVersionUID = -3985569449034035768L;

	private static final Log logger = LogFactory.getLog(Index.class);

	private List<FareFacilitator> farefacilitators = new ArrayList<FareFacilitator>();

	@Autowired
	private SystemService systemService;

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.opensymphony.xwork2.ActionSupport#execute()
	 */
	public String execute() throws Exception {

		logger.info(">>>>>>> action is /system/facilitator/index");

		farefacilitators = systemService.getObjects(FareFacilitator.class);

		return super.execute();
	}

	/**
	 * @return the farefacilitators
	 */
	public List<FareFacilitator> getFarefacilitators() {
		return farefacilitators;
	}

	/**
	 * @param farefacilitators
	 *            the farefacilitators to set
	 */
	public void setFarefacilitators(List<FareFacilitator> farefacilitators) {
		this.farefacilitators = farefacilitators;
	}

	/**
	 * @param systemService
	 *            the systemService to set
	 */
	public void setSystemService(SystemService systemService) {
		this.systemService = systemService;
	}

}
